package cn.monkey.chat.server.admin.domain.server;

import org.redisson.api.RedissonClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServerConfig {

    @Bean
    ServerLoadRepository serverLoadRepository(RedissonClient redissonClient) {
        return new RedisServerLoadRepository(redissonClient);
    }
}
